Release 10.1A: OpenEdge Development:
Progress 4GL Reference
TO-ROWID function
Converts a string representation of a ROWID to a valid ROWID value.
Syntax
rowid-stringA string representation of a ROWID. Since ROWID values are a variable sequence of hexadecimal digits,
Examplesrowid-stringmust be in the form "0xhex-digits", wherehex-digitsis any string of characters from 0 through 9 and A through F.The following procedure (
r-torwid.p) selects customer balance and credit information and displays it in a browse. You can select any number of rows to store and display more information on the selected customers.
Thus, when you choose the bstore button,
r-torwid.pstores the ROWID string values of all selected customer records in a temporary table. When you choose the bdisplay button, it displays the selected customer phone information in a down frame by converting each stored ROWID string to a ROWID value and finding the corresponding customer record. (The example also allows you to add selections and restart by deleting the existing selections.)Note
Although TO-ROWID converts a properly formatted string to a ROWID value, there is no guarantee that this value corresponds to an existing record in your database.
See also
DATE function, DECIMAL function, INTEGER function, ROWID function, STRING function
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |